package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Address;

import java.util.List;
import java.util.Map;

public interface AddressDao {
    Page<Address> findPage(String queryString);

    void add(Address address);

    Address findById(Integer id);

    void update(Address address);

    Integer findOrderIdByAddressId(Integer id);

    void delete(Integer id);

    List<Address> findAddress();


    Integer findIdByName(String address);


    List<Address> findByIds(Integer[] ids);

    List<Map<String, Object>> findCityCount();
}
